package com.wink.admin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 角色菜单实体类
 *
 * @author xw
 * @date 2020/11/5 15:49
 */
@Data
@Entity
@Table(name = "sys_role_menu")
@TableName("sys_role_menu")
@EqualsAndHashCode(callSuper = true)
@org.hibernate.annotations.Table(appliesTo = "sys_role_menu", comment = "角色菜单关联表")
public class SysRoleMenu extends BaseEntity {

    @Column(name = "role_id", columnDefinition = ("bigint not null comment '角色ID'"))
    private Long roleId;

    @Column(name = "menu_id", columnDefinition = ("bigint not null comment '栏目ID'"))
    private Long menuId;
}
